home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / utility / mu17_ext.zip / DEAMON.H < prev    next >
C/C++ Source or Header  |  1994-03-07  |  952b  |  41 lines

  1. #define DEAMON "SecurityDeamon"
  2.  
  3. #define PASSWD "s:passwords"
  4.  
  5. #define OK    0x00000000    /*action ok*/
  6. #define LOGIN   0x00000001    /*login a user*/
  7. #define LOGOUT  0x00000002    /*logout a user*/
  8. #define SLEEP   0x00000004    /*goto sleep, do not remain active*/
  9. #define ACTIVE    0x00000008    /*Wake UP, become active*/
  10. #define LOCK    0x00000010    /*Lock Filesystem*/
  11. #define ULOCK    0x00000020    /*Unlock Filesystem*/
  12. #define WHOAMI    0x00000040    /*Who is the current user*/
  13. #define CHANGE    0x00000080    /*Change Password*/
  14.  
  15. #define QUIT    0x80000000    /*get deamon to quit*/
  16.  
  17. struct LockList {
  18.     APTR            Locks;
  19.     struct LockList        *Next;
  20.     struct LockList        *Prev;
  21. };
  22.  
  23. struct CurrentUser {
  24.     char             Name[100];
  25.     char             Login[20];
  26.     struct LockList     *Locks;
  27.     long            UID;
  28.     long            GID;
  29. };
  30.  
  31.  
  32. struct SecMessage {
  33.         struct Message         LoginMsg;
  34.         char            Password[100];
  35.         char            User[100];
  36.        unsigned long        Control;
  37.         BOOL            Access;
  38.         struct CurrentUser    *UserData;
  39.     APTR            Data;
  40. };
  41.